require("@babel/runtime/helpers/Objectvalues"), App({
    onLaunch: function() {
        Object.values || (Object.values = function(t) {
            var a = [];
            for (var e in t) a.push(t[e]);
            return a;
        });
    },
    watch: function(t, a) {
        var e = this;
        Object.keys(a).forEach(function(n) {
            e.observer(t.data, n, t.data[n], function(e) {
                a[n].call(t, e);
            });
        });
    },
    observer: function(t, a, e, n) {
        Object.defineProperty(t, a, {
            configurable: !0,
            enumerable: !0,
            get: function() {
                return e;
            },
            set: function(t) {
                t !== e && (n && n(t), e = t);
            }
        });
    },
    onShow: function() {
        try {
            var t = wx.getSystemInfoSync();
            this.globalData.StatusBar = t.statusBarHeight;
            try {
                var a = wx.getMenuButtonBoundingClientRect();
                null != a ? (this.globalData.Custom = a, this.globalData.CustomBar = a.bottom + a.top - t.statusBarHeight, 
                this.globalData.CustomBarLeft = a.left) : this.customHandle(this.globalData.StatusBar);
            } catch (t) {
                this.customHandle(this.globalData.StatusBar);
            }
            (isNaN(Number(this.globalData.CustomBar)) || this.globalData.CustomBar <= 50) && this.customHandle(this.globalData.StatusBar);
        } catch (t) {
            (isNaN(Number(this.globalData.CustomBar)) || this.globalData.CustomBar <= 50) && this.customHandle(20);
        }
    },
    customHandle: function(t) {
        var a = {
            bottom: 58,
            height: 32,
            left: 278,
            right: 365,
            top: 26,
            width: 87
        };
        this.globalData.Custom = a, this.globalData.CustomBar = a.bottom + a.top - t, this.globalData.CustomBarLeft = a.left;
    },
    globalData: {
        product_list_url: "https://xytest02.oss-cn-shenzhen.aliyuncs.com/jd/pro-v6.json"
    },
    ad: {
        jlAd_01: "adunit-a2ef12a7c2d42b87",
        jlAd_02: "adunit-bee3ce19622f3935",
        jlAd_03: "adunit-aed11557f64ebb86",
        jlAd_04: "adunit-a830d789b3d76193",
        cpAd_01: "adunit-e55b14edb9b3a651",
        cpAd_02: "adunit-4d9bec6baf57de32",
        cpAd_03: "adunit-33bf4220195c3ac4",
        cpAd_04: "adunit-374fc9d7e127f5ef",
        spAd_01: "adunit-11432d3870641c24",
        bnAd_01: "adunit-869731866010bff1",
        bnAd_02: "adunit-4dc2524fece08a59",
        bnAd_03: "adunit-37ecf03994c6b989",
        bnAd_04: "adunit-6f03339f1649b2c0",
        gzAd_01: "adunit-1084b7923a259db6"
    }
});